package com.chen.root.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author: ~龙~
 * @date: 2023/8/11 9:16
 **/
@Data
@Component
@RefreshScope
public class GatewaySecurityProperties {

    @Value("${gateway.enable:false}")
    private Boolean enable;

    @Value("${gateway.security-code:}")
    private String securityCode;

}
